package cate.game.role.farm.adventure.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBAdventure;

@ClientMsg(title = "观察冒险挂机奖励 の 请求")
public class WatchAdventureHangReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getFarm().adventure.getOrWatchHangReward(true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBAdventure.WATCH_HANG_REWARD_REQ;
    }
}
